
#define RASSIZE(w,h) ((h)*(((w)+15)>>3)&$FFFE)

CONST	BITSET=$8000,
		BITCLR=0,
		AGNUS=1,
		DENISE=1

OBJECT BitMap
	Bytesperrow:UWORD,
	Rows:UWORD,
	Flags:CHAR,
	Depth:CHAR,
	Pad:INT,
	Planes[8]:PTR TO CHAR

OBJECT Rectangle
	MinX:WORD,
	MinY:WORD,
	MaxX:WORD,
	MaxY:WORD

OBJECT Rect32
	MinX:LONG,
	MinY:LONG,
	MaxX:LONG,
	MaxY:LONG

OBJECT TPoint
	X|x:INT,
	Y|y:INT

FLAG	BM_CLEAR,
		BM_DISPLAYABLE,
		BM_INTERLEAVED,
		BM_STANDARD,
		BM_MINPLANES
CONST	BMA_HEIGHT=0,
		BMA_DEPTH=4,
		BMA_WIDTH=8,
		BMA_FLAGS=12
